#!/bin/bash
cur_dir=`pwd`

mkdir -p /data/docker-data/mysql-data/

docker stop jz_crm_mysql
docker rm jz_crm_mysql

docker run --name jz_crm_mysql --restart=always \
    -v `pwd`/conf:/etc/mysql/conf.d \
    -v /data/docker-data/mysql-data/:/var/lib/mysql \
    -p 3306:3306 \
    -e MYSQL_ROOT_PASSWORD="jz-crm-mysql" \
    -e TZ=Asia/Shanghai \
    -d mysql:5.7.9
